package com.ggk911.pharmacy_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 供应商提供药物类
 * @author ggk-911
 * @version 1.0 2023/3/9 15:09
 */
@Data
@TableName("supplier_drug")
@AllArgsConstructor
@NoArgsConstructor
public class SupplierDrug {

    @TableId(value = "supplier_drug_id", type = IdType.AUTO)
    private Integer supplierDrugId;
    @TableField("drug_info_id")
    private Integer drugInfoId;
    @TableField("supplier_id")
    private Integer supplierId;
    @TableField("supplier_drug_price")
    private Double supplierDrugPrice;


    @TableField(exist = false)
    private DrugInfo drugInfo;
    @TableField(exist = false)
    private Supplier supplier;
}
